{% extends 'basic.html' %}
{% block title %}课程类型管理{% endblock %}
{% block content %}
{% load static %}
<h3>课程类型管理</h3>
<ul id="course-type-list">
    {% csrf_token %}
    {% for course_type in course_types %}
        <li>
            <span>{{ course_type.type_name }}</span>
            <button class="edit-btn" data-id="{{ course_type.type_id }}">修改</button>
            <button class="delete-btn" data-id="{{ course_type.type_id }}">删除</button>
        </li>
    {% empty %}
        <li class="empty">暂无课程类型</li>
    {% endfor %}
</ul>
<div class="back-to-main">
    <a href="{% url 'main_page' %}" class="back-btn">返回主页面</a>
</div>
<link rel="stylesheet" href="{% static 'css/manage_type.css' %}">
<script src="{% static 'js/manage_type.js' %}"></script>
{% endblock %}